<?php
$servername = "127.0.0.1";
$username = "root";
$password = "";
$dbname = "erciyuan";

// 创建连接
$conn = new mysqli($servername, $username, $password, $dbname);
$conn->query("set names utf8");  //数据库交换编码
// 检测连接
/*if ($conn->connect_error) {
    die("连接失败: " . $conn->connect_error);
}
echo "连接成功";*/
?>
